package acs;

import java.util.List;

public class Connsumer implements Runnable {
    List<Producer> list;

    public Connsumer() {
    }

    public Connsumer(List<Producer> list) {
        this.list = list;
    }

    @Override
    public void run() {
        if(list.isEmpty()){
            System.out.println("产品都被消费完了，等待生产者生产");
        }
    }
}
